﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._211217
{
    /// <summary>
    ///  保存入住信息
    /// </summary>
    public class InputSaveHouse
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码必传！")]
        public string userID { get; set; }
        /// <summary>
        ///  path
        /// </summary>
        //[Required(ErrorMessage = "目录path必传！")]
        public string folderPath { get; set; }
        /// <summary>
        ///  楼层，别墅类不需要传楼层
        /// </summary>
        public string docNumber { get; set; }
        /// <summary>
        ///  商品代码
        /// </summary>
        public string fileCode { get; set; }
    }
    /// <summary>
    ///  保存用户搬出住宅
    /// </summary>
    public class InputUserHouseOut
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码必传！")]
        public string userID { get; set; }
        /// <summary>
        ///  商品ID
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请正确传递商品ID！")]
        public int fileID { get; set; }
    }
}